package com.igeek.ch02.vo;

import java.util.List;

public class PageVO<T> {

    private int current;

    private int size;

    private int myPages;

    private String query;

    private List<T> list;


    public PageVO() {
    }

    public PageVO(int current, int size, int myPages, String query, List<T> list) {
        this.current = current;
        this.size = size;
        this.myPages = myPages;
        this.query = query;
        this.list = list;
    }

    /**
     * 获取
     * @return current
     */
    public int getCurrent() {
        return current;
    }

    /**
     * 设置
     * @param current
     */
    public void setCurrent(int current) {
        this.current = current;
    }

    /**
     * 获取
     * @return size
     */
    public int getSize() {
        return size;
    }

    /**
     * 设置
     * @param size
     */
    public void setSize(int size) {
        this.size = size;
    }

    /**
     * 获取
     * @return myPages
     */
    public int getMyPages() {
        return myPages;
    }

    /**
     * 设置
     * @param myPages
     */
    public void setMyPages(int myPages) {
        this.myPages = myPages;
    }

    /**
     * 获取
     * @return query
     */
    public String getQuery() {
        return query;
    }

    /**
     * 设置
     * @param query
     */
    public void setQuery(String query) {
        this.query = query;
    }

    /**
     * 获取
     * @return list
     */
    public List<T> getList() {
        return list;
    }

    /**
     * 设置
     * @param list
     */
    public void setList(List<T> list) {
        this.list = list;
    }

    public String toString() {
        return "PageVO{current = " + current + ", size = " + size + ", myPages = " + myPages + ", query = " + query + ", list = " + list + "}";
    }
}
